<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .center {
            margin: 40px 80px;
        }
    </style>
</head>
<body>
    <div class="center">
        <ul id="msg">

        </ul>
    </div>
</body>
<script src="../js/jquery-3.5.1.min.js"></script>
<script>
    $(() => {
        fillContent();
    })

    function fillContent() {
        $.get({
            url: '/msg/get',
            success(res) {
                let msg = $('#msg');
                msg.empty();
                $.each(res.data, (index, value) => {
                    msg.append('<li>' + value + '</li>');
                });
            }
        });
    }
</script>
</html>